home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / LP.ARJ / LP.DOC < prev    next >
Text File  |  1991-05-18  |  3KB  |  65 lines

  1.     The lp.cpp program was somthin that I wrote to confound a C teacher that
  2. I have in college. The oversight that I made was : the man was souch a 
  3. weak coder to begin with, he just looked over the code, and signed it off,
  4. without even noticing that a few things looked strange. Anyway, the deed is
  5. done, and I thought that there might be some folks out and about that would
  6. like to have a copy of this program. 
  7.  
  8.     The purpose of the program is to allow a user, you or i, to send to his
  9. printer, prn or lpt1 or lpt3, a sequence of char, (12) or (27,64,23,74), 
  10. easily, and with as little hassle as possible. The program takes for its
  11. arguments some commands like : 
  12. -l list all of the flags and their descriptions
  13. -d send sequence of char's that makeup the code sequence for the printer
  14.    to standard out. (included for a friend of mine who wanted to do ANSI 
  15.    stuff with his screen, as well as stuff the printer coded directly into
  16.    text files)
  17. -f tell the program where to look for these secrete codes, that is to say
  18.    what file. The program assumes lp_codes.out, to chage this to say,
  19.    pr_codes.txt the command line would have in it -fpr_codes.txt.
  20.    if the file cannot be found in the current directory the PATH will
  21.    be searched for the specified file name.
  22. -p wich lpt device do you want.. the def. is lpt1: if you need to send it
  23.    to lpt2: then by all means, use the -p2 directive.
  24. -? slightly helpfull reminder as to what the flags are.
  25. everything else, that is not preceeded by a '-', is considered a flag. All
  26.    flags that are matched to somthing in the text file cause the related
  27.    ascii codes to be sent to the printer, all those that are not found,
  28.    cause error messages.Flags are sent to the printer in the same order 
  29.    that they occure in the command line.
  30. NOTE : please remember that they may come in any order. RE: the flags and
  31.    directives.
  32.  
  33.     A word or two about the file : LOOK AT THE EXAMPLE. It is rather simple
  34. really, end your lines with carrage returns, use the case you think is 
  35. appropriate, and place the lines in groupletts of three as follows.
  36. .
  37. .
  38. .
  39. flag(CR)
  40. Text string describing the flag(CR)
  41. a seriese of text decimal values that represent the char's to be sent.(CR)
  42. flag(CR)
  43. Text string describing the flag(CR)
  44. a seriese of text decimal values that represent the char's to be sent.(CR)
  45. .
  46. .
  47. .
  48. There is almost no error checking done on the file itslef, if the groups are
  49. ont contigous, or ther is an incomplete one, the program will not care. The
  50. -l directive can be helpfull in determining correct alignment.
  51.  
  52.     One last word.  Litigation. Now we'll have none of that! This program is
  53. provided as is, with source code included. If it works for you, and you like
  54. it, gr8!!!, send a check of money order for $5.00 (or however much you think
  55. is worth the postage) to the address below, however if this segment crashes 
  56. your computer, or in anyway causes harm, the responsibility is not mine : you
  57. new the code was dangerous when you ran it. 
  58.  
  59.  
  60. - dudley farthing
  61.   10040 silverton ave.
  62.   tujunga, calif.
  63.            91042
  64.  
  65.